package com.ctshk.rpc.bus.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 巴士线路管理
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-02-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_bus_line")
@ApiModel(value="BusLine对象", description="巴士线路管理")
public class BusLine extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "巴士公司id")
    private Long busCompaniesId;

    @ApiModelProperty(value = "巴士公司名称")
    private String busCompaniesName;

    @ApiModelProperty(value = "线路名称")
    private String lineName;

    @ApiModelProperty(value = "车辆类型")
    private Integer vehicleType;

    @ApiModelProperty(value = "出发城市id")
    private Long departureCityId;

    @ApiModelProperty(value = "出发城市名称")
    private String departureCityName;

    @ApiModelProperty(value = "到达城市id")
    private Long arriveCityId;

    @ApiModelProperty(value = "到达城市名称")
    private String arriveCityName;

    @ApiModelProperty(value = "关口id")
    private Long gatewayId;

    @ApiModelProperty(value = "关口名称")
    private String gatewayName;

    @ApiModelProperty(value = "始发站id")
    private Long departureStationId;

    @ApiModelProperty(value = "始发站名称")
    private String departureStationName;

    @ApiModelProperty(value = "终点站id")
    private Long terminusId;

    @ApiModelProperty(value = "终点站名称")
    private String terminusName;

//    @TableField(exist = false)
    @ApiModelProperty(value = "预计耗时")
    private Integer estimatedTime;

    @ApiModelProperty(value = "是否有效 1-有效 2-无效")
    private Integer status;

    @ApiModelProperty(value = "小童岁数起始")
    private Integer childAgeBegin;

    @ApiModelProperty(value = "小童岁数结束")
    private Integer childAgeEnd;

    @ApiModelProperty(value = "成人岁数起始")
    private Integer adultAgeBegin;

    @ApiModelProperty(value = "成人岁数结束")
    private Integer adultAgeEnd;

    @ApiModelProperty(value = "长者岁数起始")
    private Integer oldAgeBegin;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识(0:未删除 1：已删除)")
    private Integer isDeleted;


}
